package org.sky.algorithm.arrayList;

/**
 * @author fog
 * @description 测试类
 * @date 2021/7/20
 */

public class TestMyArray {

    public static void main(String[] args) {

        MyArray array = new MyArray();

        System.out.println("initialization size -->  " + array.size());
        array.show();

        array.add(99);
        array.add(98);
        array.add(97);
        System.out.println("add element size -->  " + array.size());
        array.show();

        array.insert(1, 100);
        array.show();

        array.set(1, 101);
        array.show();

        array.delete(1);
        array.show();

        System.out.println(array.search(98));

    }

}
